<%-- 
    Document   : header
    Created on : 2014-4-2, 10:00:38
    Author     : lcfgly
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page trimDirectiveWhitespaces="true" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation" >
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="http://www.mp189.com">365路比户外</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="http://www.mp189.com/search.html">装备</a></li>
                <li><a href="http://www.mp189.com/top/newslist.html">新闻</a></li>
                <li><a href="http://www.mp189.com/top/newslist/allcp.html">测评</a></li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>
<div class="top">
    <div class="container">
        <div class="topimg">
            <c:if test="${!empty userinfo.imgs[0].imgurl}">
                <div data-ride="carousel" class="carousel slide" id="headerimgchg">
                    <div class="carousel-inner">
                        <c:forEach items="${userinfo.imgs}" var="item" varStatus="var" >
                            <c:if test="${!empty item.imgurl}" >
                            <div class="item <c:if test="${var.index ==0}" >active</c:if>">
                                    <img src="http://img.mp189.com/images/${item.imgurl}" width="1170" height="335" />
                                </div>
                            </c:if>
                        </c:forEach>
                    </div>
                    <a data-slide="prev" href="#headerimgchg" class="left carousel-control">
                        <span class="glyphicon glyphicon-chevron-left"></span>
                    </a>
                    <a data-slide="next" href="#hheaderimgchg" class="right carousel-control">
                        <span class="glyphicon glyphicon-chevron-right"></span>
                    </a>
                </div>
            </c:if>
        </div>
    </div>
</div>
<!--导航条-->
<div class="default">
    <nav class="navbar navbar-default headernav container nopadding" >
            <ul class="nav navbar-nav">
                <li <c:if test="${headercss=='首页'}" >class="active"</c:if>><a href="<c:url value="/shop/${userinfo.users.username}.html" />">首页</a></li>
                <li <c:if test="${headercss=='商品报价'}" >class="active"</c:if>><a href="<c:url value="/shoplist/${userinfo.users.uid}/1.html" />">商品报价</a></li>
                    <c:forEach var="item" items="${menu}"  >
                        <c:if test="${item.isnews}" >
                        <li  <c:if test="${headercss==item.typename}" >class="active"</c:if>><a href="<c:url value="/shopnews/${userinfo.users.uid}/${item.id}/1.html"/>">${item.typename}</a></li>
                        </c:if>
                        <c:if test="${!item.isnews}">
                        <li  <c:if test="${headercss==item.typename}" >class="active"</c:if>><a href="<c:url value="/shopone/${userinfo.users.uid}/${item.id}.html"/>">${item.typename}</a></li>
                        </c:if>
                    </c:forEach>
                <li <c:if test="${headercss=='留言'}" >class="active"</c:if>><a href="<c:url value="/shopmessage/${userinfo.users.uid}/1.html" />">用户留言</a></li>
                <li <c:if test="${headercss=='地图'}" >class="active"</c:if>><a href="<c:url value="/map/${userinfo.users.uid}.html" />">地图导航</a></li>
            </ul>
    </nav>
</div>
<!--end导航条-->